<?php

/**
 * @file
 * commerce_customer_address.features.field_instance.inc
 */

/**
 * Implements hook_field_default_field_instances().
 */
function commerce_customer_address_field_default_field_instances() {
  $field_instances = [];

  // Exported field_instance:
  // 'commerce_customer_profile-shipping-field_cityname'.
  $field_instances['commerce_customer_profile-shipping-field_cityname'] = [
    'bundle' => 'shipping',
    'default_value' => NULL,
    'deleted' => 0,
    'description' => '',
    'display' => [
      'default' => [
        'label' => 'above',
        'module' => 'text',
        'settings' => [],
        'type' => 'text_default',
        'weight' => 3,
      ],
    ],
    'entity_type' => 'commerce_customer_profile',
    'field_name' => 'field_cityname',
    'label' => '市',
    'required' => 0,
    'settings' => [
      'better_formats' => [
        'allowed_formats' => [
          'filtered_html' => 'filtered_html',
          'full_html' => 'full_html',
          'plain_text' => 'plain_text',
        ],
        'allowed_formats_toggle' => 0,
        'default_order_toggle' => 0,
        'default_order_wrapper' => [
          'formats' => [
            'filtered_html' => [
              'weight' => 0,
            ],
            'full_html' => [
              'weight' => 1,
            ],
            'plain_text' => [
              'weight' => 10,
            ],
          ],
        ],
      ],
      'text_processing' => 0,
      'user_register_form' => FALSE,
    ],
    'widget' => [
      'active' => 1,
      'module' => 'text',
      'settings' => [
        'size' => 60,
      ],
      'type' => 'text_textfield',
      'weight' => 4,
    ],
  ];

  // Exported field_instance:
  // 'commerce_customer_profile-shipping-field_countyname'.
  $field_instances['commerce_customer_profile-shipping-field_countyname'] = [
    'bundle' => 'shipping',
    'default_value' => NULL,
    'deleted' => 0,
    'description' => '',
    'display' => [
      'default' => [
        'label' => 'above',
        'module' => 'text',
        'settings' => [],
        'type' => 'text_default',
        'weight' => 4,
      ],
    ],
    'entity_type' => 'commerce_customer_profile',
    'field_name' => 'field_countyname',
    'label' => '区',
    'required' => 0,
    'settings' => [
      'better_formats' => [
        'allowed_formats' => [
          'filtered_html' => 'filtered_html',
          'full_html' => 'full_html',
          'plain_text' => 'plain_text',
        ],
        'allowed_formats_toggle' => 0,
        'default_order_toggle' => 0,
        'default_order_wrapper' => [
          'formats' => [
            'filtered_html' => [
              'weight' => 0,
            ],
            'full_html' => [
              'weight' => 1,
            ],
            'plain_text' => [
              'weight' => 10,
            ],
          ],
        ],
      ],
      'text_processing' => 0,
      'user_register_form' => FALSE,
    ],
    'widget' => [
      'active' => 1,
      'module' => 'text',
      'settings' => [
        'size' => 60,
      ],
      'type' => 'text_textfield',
      'weight' => 5,
    ],
  ];

  // Exported field_instance:
  // 'commerce_customer_profile-shipping-field_detailinfo'.
  $field_instances['commerce_customer_profile-shipping-field_detailinfo'] = [
    'bundle' => 'shipping',
    'default_value' => NULL,
    'deleted' => 0,
    'description' => '',
    'display' => [
      'default' => [
        'label' => 'above',
        'module' => 'text',
        'settings' => [],
        'type' => 'text_default',
        'weight' => 5,
      ],
    ],
    'entity_type' => 'commerce_customer_profile',
    'field_name' => 'field_detailinfo',
    'label' => '详细收货地址',
    'required' => 1,
    'settings' => [
      'better_formats' => [
        'allowed_formats' => [
          'filtered_html' => 'filtered_html',
          'full_html' => 'full_html',
          'plain_text' => 'plain_text',
        ],
        'allowed_formats_toggle' => 0,
        'default_order_toggle' => 0,
        'default_order_wrapper' => [
          'formats' => [
            'filtered_html' => [
              'weight' => 0,
            ],
            'full_html' => [
              'weight' => 1,
            ],
            'plain_text' => [
              'weight' => 10,
            ],
          ],
        ],
      ],
      'text_processing' => 0,
      'user_register_form' => FALSE,
    ],
    'widget' => [
      'active' => 1,
      'module' => 'text',
      'settings' => [
        'rows' => 5,
      ],
      'type' => 'text_textarea',
      'weight' => 6,
    ],
  ];

  // Exported field_instance:
  // 'commerce_customer_profile-shipping-field_postalcode'.
  $field_instances['commerce_customer_profile-shipping-field_postalcode'] = [
    'bundle' => 'shipping',
    'default_value' => NULL,
    'deleted' => 0,
    'description' => '',
    'display' => [
      'default' => [
        'label' => 'above',
        'module' => 'text',
        'settings' => [],
        'type' => 'text_default',
        'weight' => 1,
      ],
    ],
    'entity_type' => 'commerce_customer_profile',
    'field_name' => 'field_postalcode',
    'label' => '邮编',
    'required' => 1,
    'settings' => [
      'better_formats' => [
        'allowed_formats' => [
          'filtered_html' => 'filtered_html',
          'full_html' => 'full_html',
          'plain_text' => 'plain_text',
        ],
        'allowed_formats_toggle' => 0,
        'default_order_toggle' => 0,
        'default_order_wrapper' => [
          'formats' => [
            'filtered_html' => [
              'weight' => 0,
            ],
            'full_html' => [
              'weight' => 1,
            ],
            'plain_text' => [
              'weight' => 10,
            ],
          ],
        ],
      ],
      'text_processing' => 0,
      'user_register_form' => FALSE,
    ],
    'widget' => [
      'active' => 1,
      'module' => 'text',
      'settings' => [
        'size' => 60,
      ],
      'type' => 'text_textfield',
      'weight' => 2,
    ],
  ];

  // Exported field_instance:
  // 'commerce_customer_profile-shipping-field_provincename'.
  $field_instances['commerce_customer_profile-shipping-field_provincename'] = [
    'bundle' => 'shipping',
    'default_value' => NULL,
    'deleted' => 0,
    'description' => '',
    'display' => [
      'default' => [
        'label' => 'above',
        'module' => 'text',
        'settings' => [],
        'type' => 'text_default',
        'weight' => 2,
      ],
    ],
    'entity_type' => 'commerce_customer_profile',
    'field_name' => 'field_provincename',
    'label' => '省',
    'required' => 1,
    'settings' => [
      'better_formats' => [
        'allowed_formats' => [
          'filtered_html' => 'filtered_html',
          'full_html' => 'full_html',
          'plain_text' => 'plain_text',
        ],
        'allowed_formats_toggle' => 0,
        'default_order_toggle' => 0,
        'default_order_wrapper' => [
          'formats' => [
            'filtered_html' => [
              'weight' => 0,
            ],
            'full_html' => [
              'weight' => 1,
            ],
            'plain_text' => [
              'weight' => 10,
            ],
          ],
        ],
      ],
      'text_processing' => 0,
      'user_register_form' => FALSE,
    ],
    'widget' => [
      'active' => 1,
      'module' => 'text',
      'settings' => [
        'size' => 60,
      ],
      'type' => 'text_textfield',
      'weight' => 3,
    ],
  ];

  // Exported field_instance:
  // 'commerce_customer_profile-shipping-field_telnumber'.
  $field_instances['commerce_customer_profile-shipping-field_telnumber'] = [
    'bundle' => 'shipping',
    'default_value' => NULL,
    'deleted' => 0,
    'description' => '',
    'display' => [
      'default' => [
        'label' => 'above',
        'module' => 'text',
        'settings' => [],
        'type' => 'text_default',
        'weight' => 6,
      ],
    ],
    'entity_type' => 'commerce_customer_profile',
    'field_name' => 'field_telnumber',
    'label' => '收货人手机号码',
    'required' => 1,
    'settings' => [
      'better_formats' => [
        'allowed_formats' => [
          'filtered_html' => 'filtered_html',
          'full_html' => 'full_html',
          'plain_text' => 'plain_text',
        ],
        'allowed_formats_toggle' => 0,
        'default_order_toggle' => 0,
        'default_order_wrapper' => [
          'formats' => [
            'filtered_html' => [
              'weight' => 0,
            ],
            'full_html' => [
              'weight' => 1,
            ],
            'plain_text' => [
              'weight' => 10,
            ],
          ],
        ],
      ],
      'text_processing' => 0,
      'user_register_form' => FALSE,
    ],
    'widget' => [
      'active' => 1,
      'module' => 'text',
      'settings' => [
        'size' => 60,
      ],
      'type' => 'text_textfield',
      'weight' => 1,
    ],
  ];

  // Exported field_instance:
  // 'commerce_customer_profile-shipping-field_username'.
  $field_instances['commerce_customer_profile-shipping-field_username'] = [
    'bundle' => 'shipping',
    'default_value' => NULL,
    'deleted' => 0,
    'description' => '',
    'display' => [
      'default' => [
        'label' => 'above',
        'module' => 'text',
        'settings' => [],
        'type' => 'text_default',
        'weight' => 0,
      ],
    ],
    'entity_type' => 'commerce_customer_profile',
    'field_name' => 'field_username',
    'label' => '收货人姓名',
    'required' => 1,
    'settings' => [
      'better_formats' => [
        'allowed_formats' => [
          'filtered_html' => 'filtered_html',
          'full_html' => 'full_html',
          'plain_text' => 'plain_text',
        ],
        'allowed_formats_toggle' => 0,
        'default_order_toggle' => 0,
        'default_order_wrapper' => [
          'formats' => [
            'filtered_html' => [
              'weight' => 0,
            ],
            'full_html' => [
              'weight' => 1,
            ],
            'plain_text' => [
              'weight' => 10,
            ],
          ],
        ],
      ],
      'text_processing' => 0,
      'user_register_form' => FALSE,
    ],
    'widget' => [
      'active' => 1,
      'module' => 'text',
      'settings' => [
        'size' => 60,
      ],
      'type' => 'text_textfield',
      'weight' => 0,
    ],
  ];

  // Translatables
  // Included for use with string extractors like potx.
  t('区');
  t('市');
  t('收货人姓名');
  t('收货人手机号码');
  t('省');
  t('详细收货地址');
  t('邮编');

  return $field_instances;
}
